#include<iostream>
#include<math.h>
using namespace std;
template <typename T> T rounding_numbers (T k,T n)
{
	int a=k*(pow(10,(n+1)));
    int b=a%10;   
    double number;
	if(b<5)
        {
			number=(a-b)/pow(10,(n+1));
		}
        else if(b>=5)
		{
				number=(a-b+10)/pow(10,(n+1));
		}
        cout<<"\n"<<number<<"\n";
return 0;
}

void main()
{
    double cap,number;
    cout<<"vvedite cheslo\n";
    cin>>number;
    cout<<"vvedite emkoct\n";
    cin>>cap;
    rounding_numbers (number,cap);
    
 
}